<?php

/* 
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */
namespace app\pack\model;

use think\Model as ThinkModel;

/**
 * 广告模型
 * @package app\cms\model
 */
class PackUser extends ThinkModel
{
    // 设置当前模型对应的完整数据表名称
    protected $table = '__PACK_USER__';


    // 写入时，将菜单id转成json格式
    public function setPackAttr($value)
    {
        return json_encode($value);
    }

    // 读取时，将菜单id转为数组
    public function getPackAttr($value)
    {
        return json_decode($value, true);
    }
}
